home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Typography Samples / Typography Samples Notes 1.1.3
Encoding:
Text File  |  1996-06-21  |  6.0 KB  |  75 lines  |  [TEXT/ttxt]

  1.  
  2. Typography Samples Notes 1.1.3
  3. 16 June 1996
  4.  
  5.  
  6. Fifteen of the sixteen typographical samples have been rewritten to use some form or another of the "QuickDraw GX Shell" program in the "General QDGX App Samples" folder on this CD.  This means that these fifteen samples now support multiple windows and printing!  Print your layouts with the greatest of ease.
  7.  
  8. All code has been reworked and extensively commented.  Most library routines are identified as such and the routines' files are cross-referenced.  I tried to answer all the "Why would he want to do that?" questions I could come up with in the comments for each sample.  Build processes have been simplified where possible.  Each sample only has a Think C 7 project file.  However, since most of these sample are based on the "QuickDraw GX Shell," (which includes project files for MetroWorks and a makefile for fat builds under MPW), it should be quite easy to build any of these samples in whatever environment you prefer. 
  9.  
  10.  
  11. Brief Descriptions:
  12.  
  13. • Adjust Layout
  14. This sample demonstrates cross-stream and with-stream shifting, and it shows a not-so-subtle example of glyph substitution. When you run this sample, a line of text with three style runs is displayed. The first style run just shows 60-point Times Roman text. The second one shows 30-point text with a cross-stream shift of 30 to raise the text 30 points, and the with stream shift to -4 to move the text 4 points closer together than it would normally be. Within this style run, the ‘AW’, ‘WA’, and ‘AY’ glyph combinations have been given cross- and with-stream kerning of their own. The last style run shows 60-point text in which the ‘J’ glyph has been substituted by the ‘W’ glyph, the ‘U’ glyph has been substituted by the ‘A’ glyph, the ‘N’ glyph has been substituted by the ‘V’ glyph, and the ‘K’ glyph has been substituted by the ‘E’ glyph. This turns “JUNK” into “WAVE.”
  15.  
  16. • Arabic Layout
  17. This sample draws a line of characters containing both Arabic and Roman characters, and it shows a multi-level selection that crosses direction runs. This shows how discontiguous selections look in a complex case.
  18.  
  19. • Basic Layout
  20. This sample draws a line of characters containing both Arabic and Roman. It will all the user to hilite the layout, changed the style, and nesting.
  21.  
  22. • Circular Layout
  23. This sample draws a group of Roman and Arabic characters which form a circle around a Kanji character.  The circle of characters is then continuously rotated and redrawn in a different color. This demonstrates how a layout can be used to dash an oval shape.
  24.  
  25. • Dave’s Fab
  26. This sample includes demonstrations of dozens of QuickDraw GX Line Layout features.
  27.  
  28. • Glyph Layout
  29. This sample draws a line of text drawn with a layout, and below it another line of text drawn as a set of glyphs that are extracted from the layout. This shows that glyphs extracted from a layout look exactly like the original layout as long as contextual forms don't enter the picture (see also Types Layout Sample).
  30.  
  31. • Hebrew Layout
  32. This sample draws a line of characters containing both Hebrew and Roman characters, and it shows a multi-level selection that crosses direction runs. This shows how discontiguous selections look in a complex case.
  33.  
  34. • Hindi Layout
  35. This sample draws a line of characters containing Hindi characters, and a few characters are selected. You can see how the reordering of Hindi characters causes a discontiguous selection even though the entire line direction is left-to-right.
  36.  
  37. • Justify Layout
  38. This sample demonstrates the different capabilities provided for various types of justification by the line layout system. It draws two lines of text which have the default settings for intercharacter and interword spacing, then a line of text in which all justification effects are assigned to interword spacing, and finally a line in which all justtification effects are assigned to intercharacter spacing.
  39.  
  40. • Multi-Color Layout
  41. This sample draws a layout shape with 6 runs of text, with each run is in a different color.
  42.  
  43. • Shift Layout
  44. This sample draws a line of text containing the words, “Office” and “AWAY.”  “AWAY” is drawn shifted above the “e” in the word “Office” to demonstrate a method of superscripting. This is achieved through the use of cross-stream shifting.
  45.  
  46. • Spiral Layout
  47. This sample creates a line of text containing both Roman and Arabic characters.  The text is rotated, scaled, and redrawn in new colors. This is done through a simple rotation of the layout’s transformation.
  48.  
  49. • Style Layout
  50. This sample shows how to use the style run controls to force Roman text to appear right-to-left, reversing the visual order of the character in the Roman text. The line of text in this example begins with Roman characters that go from left to right, then Arabic characters that go from right to left, as usual, then it’s followed by Roman characters that have been force to go from right to left.
  51.  
  52. • Tag Layout
  53. This sample demonstrats the tagged morph capabilities of the line layout system.
  54.  
  55. • Tracking Layout
  56. This sample demonstrates the tracking capabilities of the line layout system. Tracking is adjusted through the run controls.
  57.  
  58. • Types Layout
  59.  This sample demonstrates the conversion between layout shapes and other related graphic shapes. The first line of text contains just one style, and it’s created as a text shape. This shape is then converted to a layout and the layout is drawn as the second line of text. The third line of text is created and drawn as a glyph shape. This shape is converted to a layout, and this is drawn as the fourth line of text. The fifth line of text is created and drawn as a layout, and this layout is converted to a glyph shape which is drawn as the sixth line of text. The seventh line of text is created and drawn as a text shape using the Diwan font, and this is then converted to a layout which is drawn as the eighth line of text.
  60.  
  61. • Very Basic Layout
  62. This sample creates a layout shape which using 3 different runs of text and styles.
  63.  
  64.  
  65.  
  66.  
  67.  
  68. All files contained in this folder are:
  69. ©Copyright 1993 - 1996 Apple Computer, Inc. All rights reserved.  
  70.  
  71. (6/16/96 BS)
  72. (7/11/95 DH)
  73. (6/27/94 PLA)
  74. (8/30/94 dmh)
  75.